using UnityEngine;

public class MapManager : MonoBehaviour
{
	public GameObject[] Maps;

	private int indexMap;

	public CameraEffectBeforeGame cameraEffect;

	private void Awake()
	{
		indexMap = BadLogic.nameMap;
		GameObject gameObject = UnityEngine.Object.Instantiate(Maps[indexMap]);
		gameObject.transform.position = Vector3.zero;
		MapConfigScript component = gameObject.GetComponent<MapConfigScript>();
		cameraEffect.setInfo(component._Center.position, component.sizeCam);
        if (!AdManager1.instance.ShieldAddress) AdManager.single.ShowBanner();
    }
}
